/**
 * @author nttdocomo
 */
define(function(require){
	require("aries");
	require("../../base");
	aries.augmentString('aries.templates.form_field_checkbox',_.template(['<input type="checkbox" id="<%=id%>"',
            '<% if(typeof(tabIdx)!=="undefined"){ %> tabIndex="<%=tabIdx%>"<%}%>',
            '<% if(disabled){ %> disabled="disabled"<%}%>',
            '<% if(typeof(style)!=="undefined"){ %> style="<%=fieldStyle%>"<%}%>',
            ' class="<%=fieldCls%> <%=typeCls%>" autocomplete="off" hidefocus="true" />',
        '<% if(typeof(boxLabel)!=="undefined" && boxLabelAlign == "after"){%>',
            '<label id="<%=cmpId%>-boxLabelEl" class="<%=boxLabelCls%> <%=boxLabelCls%>-<%=boxLabelAlign%>" for="<%=id%>">',
                '<%=boxLabel%>',
            '</label>',
        '<%}%>'].join("")));
	aries.view("aries.views.form.field.Checkbox",aries.views.Base.extend())
})
